<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>登录</h2>
<p th:text="${msg}" style="color:red;"></p>
<form th:action="@{/login}" method="post">
    username:<input name="username" placeholder="用户名" required>
    password:<input name="password" placeholder="密码" required>
    <input type="submit" value="提交">
</form>
</body>
</html>